package models

import (
	"time"
)

type Games struct {
	ID           uint      `gorm:"primary_key"`
	Title        string    `json:"title"`
	GameName     string    `json:"game_name"`
	CreateUserId uint      `gorm:"type:varchar(100);index:user_id;not_null" json:"user_id"`
	IsFinished   bool      `json:"is_finished"`
	PlayerCount  int       `json:"player_count"`
	PicUrl       string    `json:"pic_url"`
	CreatedAt    time.Time `gorm:"type:datetime;default:CURRENT_TIMESTAMP"`
}
